/*
 * DAOOperationsInterface.java
 *
 * Created on 24 settembre 2007, 14.28
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package it.cnr.icib.daopattern;


/*import carwashingsoft.*;
import controller.exception.ErrorNotExpectedException;
import controller.exception.ViolationUnivocalValuesException;
import java.sql.SQLException;
import java.sql.Statement;
*/

/**
 *
 * @author Nino
 */
public interface DAOOperationsInterface {
    
   /* public BeansList<Bean> getBeans(Bean b) throws ErrorNotExpectedException;
    public BeansList<Bean> getBeans(Bean b,Bean filter) throws ErrorNotExpectedException;
    public Bean getBean(Bean b) throws ErrorNotExpectedException;
   // public long getIdBean(Bean b) throws ErrorNotExpectedException;
   // public long insertBean(Bean b) throws ViolationUnivocalValuesException,ErrorNotExpectedException;
    public long insertBean(Bean b, boolean with_transaction) throws ViolationUnivocalValuesException,ErrorNotExpectedException;
    public boolean insertRelationBean(Bean b1, Bean b2) throws ViolationUnivocalValuesException,ErrorNotExpectedException;
    
    public boolean deleteBean(Bean b) throws ErrorNotExpectedException;
    public boolean deletetRelationBean(Bean b1, Bean b2) throws ErrorNotExpectedException;
    public boolean deletetALLRelationBean(Bean b1, Bean b2) throws ErrorNotExpectedException ;
    
    public boolean updateBean(Bean b) throws ViolationUnivocalValuesException;
    public boolean updateRelationBean(Bean b1, Bean b2) throws ViolationUnivocalValuesException;
    
  */
}
